﻿package net.wangit.view.tree;

import net.wangit.framework.exception.NestableRuntimeException;

public class TreeConfigurationException extends NestableRuntimeException {

	static final long serialVersionUID = 0xd0fd1f3e1a3b1cc4L;
	private String prop;

	public TreeConfigurationException(String s) {
		super(s);
	}

	public TreeConfigurationException(String s, Throwable cause) {
		super(s, cause);
	}

	public TreeConfigurationException(String s, String domain, String treeId,
			String prop, Throwable cause) {
		super((new StringBuilder(String.valueOf(s))).append(
				"\ntree configuration error: please check ").append(prop)
				.append(" in ").append(domain).append("/").append(treeId)
				.toString(), cause);
		this.prop = prop;
	}

	public String getProp() {
		return prop;
	}
}
